<?php 
	namespace Helpers\Connection;

	function getCon($place){
		$conn = array();
		 if($place == 'local')	{
		 	$conn = array(
				'db.options' =>  array(
			        'driver'    => 'pdo_mysql',
			        'host'      => 'localhost',
			        'dbname'    => 'series',
			        'user'      => 'root',
			        'password'  => 'mysql',
			        'charset'   => 'utf8',
		    	),
			);
		 }elseif($place == 'orisale')	{
		 	$conn = array(
				'db.options' =>  array(
			        'driver'    => 'pdo_mysql',
			        'host'      => 'mysql.sitescopy.ru',
			        'dbname'    => 'u168219490_media',
			        'user'      => 'u168219490_media',
			        'password'  => 'daKota',
			        'charset'   => 'utf8',
		    	),
			);
		 }

		return $conn;
		 
	}

	function getHomeRoute($place=''){
		$route = '/';
		if($place == 'local'){
			$route = '';
		}
		return $route;

	}

?>